package com.bysc.commonutils.enums;

public enum NoticeEnum {
    //系统
    SYSTEM(0),
    //协会
    CLUB(1),
    //点赞
    LIKE(2),
    //收藏
    COLLECT(3),
    //评论
    COMMENT(4);
    private final int value;

    NoticeEnum(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static NoticeEnum getByValue(int value) {
        for (NoticeEnum type : values()) {
            if (type.getValue() == value) {
                return type;
            }
        }
        throw new IllegalArgumentException("Invalid CommentType value: " + value);
    }
}

